class Lecture < ActiveRecord::Base
  has_many :giveslectures
  has_many :professors, :through => :giveslectures
  has_many :lecture_ratings
  
  default_scope :include => :lecture_ratings
  validates_presence_of :title, :ects, :track, :code, :semester, :location, :language, :has_exercise
end
